package edu.fh.salzburg.its.opsystems.newfs.definition;

public class NewFSConstants {

	// constants
	public static final int CLUSTER_SIZE_IN_BYTES = 512;
	public static final int NROFCLUSTERS = NewFS.STORAGE_SIZE_IN_BYTES / CLUSTER_SIZE_IN_BYTES;
	public static final int FSELEMENT_ENTRY_SIZE_IN_BYTES = 32;
	public static final int MAX_DATA_SIZE_IN_BYTES = CLUSTER_SIZE_IN_BYTES - FSELEMENT_ENTRY_SIZE_IN_BYTES;
	public static final int MAX_DIRENTRIES_PER_CLUSTER = (CLUSTER_SIZE_IN_BYTES - FSELEMENT_ENTRY_SIZE_IN_BYTES) / FSELEMENT_ENTRY_SIZE_IN_BYTES;
	public static final int FAT_SIZE_IN_BYTES = (int)(NROFCLUSTERS * 1.5);
	public static final int FAT_BITS_PER_ENTRY = 12;
	public static final String PATH_SEPARATOR = new String("/");

}
